<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
	<title></title>
	<link rel="stylesheet" type="text/css" href="styles/style.css">
	
	<script src="js/jquery-1.3.2.min.js"></script>
	<script>
		$(document).ready(function(){
			$('table.listado tbody tr:even').addClass("color2");
			$('table.listado tbody tr')
				.hover(
					function() {
						$(this).addClass('active');
					},
					function() {
						$(this).removeClass('active');
					}
				)
				
			$('table.listado th input:checkbox').click(function(){
				if($(this).is(":checked")){					
					$('table.listado input:checkbox').each(function(){
						$(this).attr('checked', "checked");
					})
				} else{
					$('table.listado input:checkbox').each(function(){
						$(this).attr('checked', "");
					})
				}
			})
			
		});
	</script>
	
	
</head>

<body>
	<div id="header">
		<div class="title">CMS Administration</div>		
		<div class="login">
			<div class="logout">
				<a href="" class="opacity50">Logout</a>
			</div>	
			<div class="message">Welcome. You're currently working as <strong>Sergio Morete</strong></div>
					
		</div>	
		
		<ul class="menu">
			<li>
				<span><a href="" class="opacity50">Home</a></span>
			</li>
			<li class="actual">
				<span><a href="" class="opacity50">Curator's area</a></span>
			</li>
			<li>
				<span><a href="" class="opacity50">Collection administrator</a></span>
			</li>
			<li>
				<span><a href="" class="opacity50">home</a></span>
			</li>
		</ul>	
	</div>
		
	<div id="body">
	
		<div id="body_top">
			<div class="title">Title of the section</div>
			<div class="description">Description of the section</div>
			<div class="pie_bloq"></div>
		</div>		
		
		<div class="contenedorMenu">
			<table class="menu" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td class="actual">
						<span><a href="">Your current Videos</a></span>
					</td>
					<td>
						<span><a href="" class="opacity50">Add a new Video</a></span>
					</td>
					<td>
						<span><a href="" class="opacity50">Remove Videos</a></span>
					</td>
				</tr>
			</table>
		</div>
		
		<div id="content">
			
			
			
			
			
			<form class="node" enctype="multipart/form-data" method="post" name="ctype">
<input type="hidden" value="true" name="ctype"/><input type="hidden" value="save" name="action"/><input type="hidden" value="http://www.cms.localhost/admin/nodes" name="referrer"/>
<fieldset>

<legend>Video</legend>

	<div>	
		<label for="ctype_title">Titulo</label>				<input type="text" id="ctype_title" value="Prueba de imagen" name="ctype_title"/>	
	</div>
	
	<div>	
		<label for="ctype_url_name">Url</label>				<input type="text" id="ctype_url_name" value="prueba-de-imagen" name="ctype_url_name"/>	</div>
	
	<script type="text/javascript">
	function set_uploading_file_thumbnail(){
		form.ready++;
	}
	function set_upload_file_thumbnail(path){
		//alert(path);
		$("input[name=thumbnail]").val(path);
		form.ready--;
	}
	function delete_upload_file_thumbnail(){		
		$("input[name=thumbnail]").val("");
	}
	function delete_form_upload_file_thumbnail(){		
		$("input[name=thumbnail]").val("");
		$("input[name=thumbnail_delete]").val("true");
	}
</script>

<div id="thumbnail">
<label>Imagen</label>



<iframe width="100%" height="60" frameborder="0" name="frame_thumbnail" src="http://www.cms.localhost/application/libraries/ctype/views/fields/includes/imagen_form.php?file_form=contents/2009/08/_FbhsausF4oQfpo5ESd.0.jpg&amp;upload_automatic=true&amp;name=thumbnail&amp;static_url=http://www.cms.localhost/static/admin/&amp;upload_tmp_path=contents/tmp/"/>

<input type="hidden" value="contents/2009/08/_FbhsausF4oQfpo5ESd.0.jpg" name="thumbnail" id="thumbnail"/>

<input type="hidden" value="false" name="thumbnail_delete" id="thumbnail_delete"/>

</div><script type="text/javascript">
tinyMCE.init({
	mode : "exact",
	elements: "text_descripcion",
	content_css : "http://www.cms.localhost/static/admin/style/estilo.css",
	
	file_browser_callback : "ajaxfilemanager",
	
	relative_urls : true,
	remove_script_host : true,
	convert_urls : false,
	document_base_url : "http://www.cms.localhost/",
	
		
		

});

function ajaxfilemanager(field_name, url, type, win) {
	var ajaxfilemanagerurl = "http://www.cms.localhost/static/admin/javascript/tinymce_3_2_3_1/jscripts/tiny_mce/plugins/ajaxfilemanager/ajaxfilemanager.php?editor=tinymce";

	switch (type) {
		case "image":
			break;
		case "media":
			break;
		case "flash": 
			break;
		case "file":
			break;
		default:
			return false;
	}

      tinyMCE.activeEditor.windowManager.open({
          url: ajaxfilemanagerurl,
          width: 782,
          height: 500,
          inline : "yes",
          close_previous : "no"
      },{
          window : win,
          input : field_name
      });
}
</script><script onload="tinymce.dom.ScriptLoader._onLoad(this,'http://www.cms.localhost/static/admin/javascript/tinymce_3_2_3_1/jscripts/tiny_mce/langs/en.js',0);" src="http://www.cms.localhost/static/admin/javascript/tinymce_3_2_3_1/jscripts/tiny_mce/langs/en.js" type="text/javascript"/><script onload="tinymce.dom.ScriptLoader._onLoad(this,'http://www.cms.localhost/static/admin/javascript/tinymce_3_2_3_1/jscripts/tiny_mce/themes/simple/editor_template.js',1);" src="http://www.cms.localhost/static/admin/javascript/tinymce_3_2_3_1/jscripts/tiny_mce/themes/simple/editor_template.js" type="text/javascript"/><script src="http://www.cms.localhost/static/admin/javascript/tinymce_3_2_3_1/jscripts/tiny_mce/themes/simple/langs/en.js" type="text/javascript"/>

<div id="descripcion">
<label>Descripción</label>


<textarea id="text_descripcion" name="descripcion" style="display: none;"><p>adfasdfasdf</p></textarea><span id="text_descripcion_container" class="mceEditor defaultSimpleSkin"><table cellspacing="0" cellpadding="0" class="mceLayout" style="width: 1240px; height: 100px;"><tbody><tr><td><div class="mceIframeContainer"><iframe frameborder="0" id="text_descripcion_ifr" src='javascript:""' style="width: 100%; height: 100px;"/></div></td></tr><tr class="last"><td align="center" class="mceToolbar mceLast"><table cellspacing="0" cellpadding="0" align="" class="mceToolbar Enabled" id="text_descripcion_tools1"><tbody><tr><td class="mceToolbarStart mceToolbarStartButton"><span><!-- IE --></span></td><td><a title="Bold (Ctrl+B)" onclick="return false;" onmousedown="return false;" class="mceButton mceButtonEnabled mce_bold" href="javascript:;" id="text_descripcion_bold"><span class="mceIcon mce_bold"/></a></td><td><a title="Italic (Ctrl+I)" onclick="return false;" onmousedown="return false;" class="mceButton mceButtonEnabled mce_italic" href="javascript:;" id="text_descripcion_italic"><span class="mceIcon mce_italic"/></a></td><td><a title="Underline (Ctrl+U)" onclick="return false;" onmousedown="return false;" class="mceButton mceButtonEnabled mce_underline" href="javascript:;" id="text_descripcion_underline"><span class="mceIcon mce_underline"/></a></td><td><a title="Strikethrough" onclick="return false;" onmousedown="return false;" class="mceButton mceButtonEnabled mce_strikethrough" href="javascript:;" id="text_descripcion_strikethrough"><span class="mceIcon mce_strikethrough"/></a></td><td><span class="mceSeparator"/></td><td><a title="Undo (Ctrl+Z)" onclick="return false;" onmousedown="return false;" class="mceButton mceButtonEnabled mce_undo" href="javascript:;" id="text_descripcion_undo"><span class="mceIcon mce_undo"/></a></td><td><a title="Redo (Ctrl+Y)" onclick="return false;" onmousedown="return false;" class="mceButton mceButtonEnabled mce_redo" href="javascript:;" id="text_descripcion_redo"><span class="mceIcon mce_redo"/></a></td><td><span class="mceSeparator"/></td><td><a title="Cleanup messy code" onclick="return false;" onmousedown="return false;" class="mceButton mceButtonEnabled mce_cleanup" href="javascript:;" id="text_descripcion_cleanup"><span class="mceIcon mce_cleanup"/></a></td><td><span class="mceSeparator"/></td><td><a title="Unordered list" onclick="return false;" onmousedown="return false;" class="mceButton mceButtonEnabled mce_insertunorderedlist" href="javascript:;" id="text_descripcion_insertunorderedlist"><span class="mceIcon mce_insertunorderedlist"/></a></td><td><a title="Ordered list" onclick="return false;" onmousedown="return false;" class="mceButton mceButtonEnabled mce_insertorderedlist" href="javascript:;" id="text_descripcion_insertorderedlist"><span class="mceIcon mce_insertorderedlist"/></a></td><td class="mceToolbarEnd mceToolbarEndButton"><span><!-- IE --></span></td></tr></tbody></table></td></tr></tbody></table></span>
</div>
<script type="text/javascript">
function set_uploading_file_archivo(){
	form.ready++;
}
function set_upload_file_archivo(path){
	//alert(path);
	$("input[name=archivo]").val(path);
	form.ready--;
}
function delete_upload_file_archivo(){		
	$("input[name=archivo]").val("");
}
function delete_form_upload_file_archivo(){		
	$("input[name=archivo]").val("");
	$("input[name=archivo_delete]").val("true");
}
</script>

<div id="archivo">
<label>Archivo</label>


<iframe width="100%" height="30" frameborder="0" name="frame_archivo" src="http://www.cms.localhost/application/libraries/ctype/views/fields/includes/upload_form.php?file_form=contents/2009/08/ES_R_Camu_70.bmp&amp;upload_automatic=true&amp;name=archivo&amp;static_url=http://www.cms.localhost/static/admin/&amp;upload_tmp_path=contents/tmp/"/>

<input type="hidden" value="contents/2009/08/ES_R_Camu_70.bmp" name="archivo" id="archivo"/>

<input type="hidden" value="false" name="archivo_delete" id="archivo_delete"/>

</div><div id="archivo_url">
<label>Archivo URL</label>


<input type="text" value="sadfsadf" name="archivo_url"/>
</div>
	
	<div>
		<div style="float: left;">
			<button type="button" name="cancel">Cancelar</button>		</div>
		<div style="float: right;">
			<button type="button" name="save">Guardar</button>			<button type="button" name="saveexit">Guardar y Salir</button>		</div>
		
		<div style="clear: both;"/>
		
	</div>
	
	<div id="espera"/>
	
</fieldset>
</form>
			
			
			
			
			
			
			
		</div>
		
	</div>
	
	<div id="footer">
		<div class="links">
			<a href="">About this tool</a>
			<a href="">Help & support</a>
			<a href="">Contact</a>
		</div>
		<div class="information">
			CMS Made by Sergio Morete Lopez
		</div>
		<div class="pie_bloq"></div>
	</div>
</body>
</html>
